package al.xc.springboot.utils;

import org.springframework.context.ConfigurableApplicationContext;

public class BeanUtils {
    private static ConfigurableApplicationContext context;
    public static void setContext(ConfigurableApplicationContext context) {
        BeanUtils.context = context;
    }
    public static <T> T getBean(Class<T> tClass) {
        return context.getBean(tClass);
    }
}
